.class public Lcom/estrongs/android/ui/view/i;
.super Ljava/lang/Object;
.source "ToolBarSwitcher.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/view/i$b;
    }
.end annotation


# instance fields
.field private a:Landroid/widget/RelativeLayout;

.field private b:Landroid/view/View;

.field private c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Les/my;",
            ">;"
        }
    .end annotation
.end field

.field private d:Lcom/estrongs/android/ui/view/i$b;

.field private e:Ljava/lang/String;

.field private f:Z

.field private g:Z

.field private h:Landroid/app/Activity;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Landroid/widget/RelativeLayout;I)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/view/i;->h:Landroid/app/Activity;

    .line 3
    iput-object p2, p0, Lcom/estrongs/android/ui/view/i;->a:Landroid/widget/RelativeLayout;

    const/4 p1, 0x0

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/ui/view/i;->d:Lcom/estrongs/android/ui/view/i$b;

    .line 5
    new-instance p1, Ljava/util/HashMap;

    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/i;->c:Ljava/util/Map;

    const/4 p1, 0x0

    .line 6
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/i;->f:Z

    const/4 p1, 0x1

    .line 7
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/i;->g:Z

    return-void
.end method

.method private a(Landroid/view/View;)V
    .locals 2

    .line 41
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    if-ne v0, p1, :cond_0

    return-void

    :cond_0
    if-eqz v0, :cond_1

    const/4 v1, 0x4

    .line 42
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 43
    :cond_1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    const/4 v0, 0x0

    .line 44
    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method private a(Landroid/view/View;Ljava/lang/String;)V
    .locals 3

    .line 26
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    if-ne v0, p1, :cond_0

    return-void

    :cond_0
    const/4 v1, 0x0

    if-nez v0, :cond_1

    .line 27
    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 28
    iput-object p1, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    goto :goto_0

    .line 29
    :cond_1
    new-instance v0, Ljava/lang/String;

    invoke-direct {v0, p2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    .line 30
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/i;->e()Landroid/view/animation/Animation;

    move-result-object p2

    .line 31
    new-instance v2, Lcom/estrongs/android/ui/view/i$a;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/view/i$a;-><init>(Lcom/estrongs/android/ui/view/i;Ljava/lang/String;)V

    invoke-virtual {p2, v2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 32
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V

    .line 33
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/i;->f()Landroid/view/animation/Animation;

    move-result-object v0

    .line 34
    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 35
    invoke-virtual {p1, p2}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V

    .line 36
    invoke-virtual {p2}, Landroid/view/animation/Animation;->start()V

    .line 37
    iget-object p2, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    const/4 v1, 0x4

    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    .line 38
    iget-object p2, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    invoke-virtual {p2, v0}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V

    .line 39
    invoke-virtual {v0}, Landroid/view/animation/Animation;->start()V

    .line 40
    iput-object p1, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/i;Landroid/view/View;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/i;->a(Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/i;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/ui/view/i;->f:Z

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/i;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/i;->f:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/i;)Lcom/estrongs/android/ui/view/i$b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/i;->d:Lcom/estrongs/android/ui/view/i$b;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/view/i;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/i;->e:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic d(Lcom/estrongs/android/ui/view/i;)Ljava/util/Map;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/i;->c:Ljava/util/Map;

    return-object p0
.end method

.method private e()Landroid/view/animation/Animation;
    .locals 3

    .line 1
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    const v1, 0x3dcccccd    # 0.1f

    const/high16 v2, 0x3f800000    # 1.0f

    invoke-direct {v0, v1, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    const-wide/16 v1, 0xc8

    .line 2
    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 3
    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    return-object v0
.end method

.method private f()Landroid/view/animation/Animation;
    .locals 3

    .line 1
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    const/high16 v1, 0x3f800000    # 1.0f

    const v2, 0x3dcccccd    # 0.1f

    invoke-direct {v0, v1, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    const-wide/16 v1, 0xc8

    .line 2
    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 3
    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Les/my;
    .locals 1

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->c:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/my;

    .line 9
    instance-of v0, p1, Les/ez;

    if-eqz v0, :cond_0

    .line 10
    move-object v0, p1

    check-cast v0, Les/ez;

    invoke-virtual {v0}, Les/ez;->j()V

    :cond_0
    return-object p1
.end method

.method public a()V
    .locals 1

    .line 46
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->e:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/view/i;->a(Ljava/lang/String;)Les/my;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 47
    invoke-virtual {v0}, Les/my;->a()V

    .line 48
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->removeAllViews()V

    .line 49
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->c:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    return-void
.end method

.method public a(Ljava/lang/String;Les/my;)V
    .locals 2

    .line 4
    invoke-virtual {p2}, Les/my;->e()Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->c:Ljava/util/Map;

    invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 6
    invoke-virtual {p2}, Les/my;->e()Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    if-nez p1, :cond_0

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/view/i;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {p2}, Les/my;->e()Landroid/view/View;

    move-result-object p2

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x1

    invoke-direct {v0, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p1, p2, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/Boolean;)V
    .locals 3

    .line 11
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/i;->g:Z

    if-nez v0, :cond_0

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    if-eqz p1, :cond_5

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->c:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    goto :goto_1

    .line 13
    :cond_1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/i;->e:Ljava/lang/String;

    .line 14
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/view/i;->a(Ljava/lang/String;)Les/my;

    move-result-object v0

    .line 15
    instance-of v1, v0, Les/wy;

    if-eqz v1, :cond_2

    .line 16
    move-object v1, v0

    check-cast v1, Les/wy;

    invoke-virtual {v1}, Les/wy;->l()V

    :cond_2
    const-string v1, "normal_mode"

    if-ne p1, v1, :cond_3

    .line 17
    iget-object v1, p0, Lcom/estrongs/android/ui/view/i;->h:Landroid/app/Activity;

    instance-of v2, v1, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;

    if-eqz v2, :cond_3

    .line 18
    check-cast v1, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;->D()Z

    move-result v1

    if-eqz v1, :cond_3

    .line 19
    iget-object p2, p0, Lcom/estrongs/android/ui/view/i;->h:Landroid/app/Activity;

    check-cast p2, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;

    const/4 v1, 0x0

    invoke-virtual {p2, v1}, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;->g(Z)V

    .line 20
    iget-object p2, p0, Lcom/estrongs/android/ui/view/i;->h:Landroid/app/Activity;

    check-cast p2, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;

    invoke-virtual {p2, v1}, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;->f(Z)V

    .line 21
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p2

    .line 22
    :cond_3
    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p2

    if-eqz p2, :cond_4

    .line 23
    invoke-virtual {v0}, Les/my;->e()Landroid/view/View;

    move-result-object p2

    invoke-direct {p0, p2, p1}, Lcom/estrongs/android/ui/view/i;->a(Landroid/view/View;Ljava/lang/String;)V

    goto :goto_0

    .line 24
    :cond_4
    invoke-virtual {v0}, Les/my;->e()Landroid/view/View;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/i;->a(Landroid/view/View;)V

    :goto_0
    return-void

    :cond_5
    :goto_1
    const-string p1, "ToolBarSwitcher"

    const-string p2, "Illegal command!"

    .line 25
    invoke-static {p1, p2}, Lcom/estrongs/android/util/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 45
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/i;->g:Z

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->e:Ljava/lang/String;

    return-object v0
.end method

.method public b(Z)V
    .locals 3

    if-nez p1, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->c:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/my;

    .line 4
    invoke-virtual {v1}, Les/my;->e()Landroid/view/View;

    move-result-object v1

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :cond_0
    if-eqz p1, :cond_1

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/ui/view/i;->b:Landroid/view/View;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    return-void
.end method

.method public c()Z
    .locals 3

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/i;->f:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    return v0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->e:Ljava/lang/String;

    const/4 v1, 0x0

    if-eqz v0, :cond_2

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/view/i;->a(Ljava/lang/String;)Les/my;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 5
    instance-of v2, v0, Les/ez;

    if-eqz v2, :cond_1

    return v1

    .line 6
    :cond_1
    invoke-virtual {v0}, Les/my;->f()Z

    move-result v0

    return v0

    :cond_2
    return v1
.end method

.method public d()Z
    .locals 1

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/i;->f:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    return v0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/i;->e:Ljava/lang/String;

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/view/i;->a(Ljava/lang/String;)Les/my;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Les/my;->g()Z

    move-result v0

    return v0

    :cond_1
    const/4 v0, 0x0

    return v0
.end method
